<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>热点资讯网</title>
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <script src="webjars/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div id="all">
    <h1>热点资讯网</h1>
    <table class="tab">
        <thead>
            <tr>
                <th>序号</th>
                <th>标题</th>
                <th>回复/查看</th>
                <th>发表时间</th>
                <th>最后修改</th>
            </tr>
        </thead>
        <tbody id="tbody">
            <#list informationList as information>
                <tr>
                    <td>${information.id}</td>
                    <td class="tit">
                        <a href="inReplies/${information.id}">
                            <#if information.title?length gt 20>
                                ${information.title?substring(0,16)}...
                                <#else >
                                    ${information.title}
                            </#if>
                        </a>
                    </td>
                    <td>${information.replycount}/${information.viewcount}</td>
                    <td>${information.reporttime?string("yyyy-MM-dd HH:mm:dd")}</td>
                    <td>${information.lastmdftime?string("yyyy-MM-dd HH:mm:dd")}</td>
                </tr>
            </#list>
        </tbody>
    </table>
</div>
</body>
<script src="js/index.js" type="text/javascript" rel="script"></script>
</html>